package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TAccountDetailMapper;
import com.ruoyi.system.domain.TAccountDetail;
import com.ruoyi.system.service.ITAccountDetailService;

/**
 * 示账户变更的明细记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
@Service
public class TAccountDetailServiceImpl implements ITAccountDetailService 
{
    @Autowired
    private TAccountDetailMapper tAccountDetailMapper;

    /**
     * 查询示账户变更的明细记录
     * 
     * @param aid 示账户变更的明细记录主键
     * @return 示账户变更的明细记录
     */
    @Override
    public TAccountDetail selectTAccountDetailByAid(Long aid)
    {
        return tAccountDetailMapper.selectTAccountDetailByAid(aid);
    }

    /**
     * 查询示账户变更的明细记录列表
     * 
     * @param tAccountDetail 示账户变更的明细记录
     * @return 示账户变更的明细记录
     */
    @Override
    public List<TAccountDetail> selectTAccountDetailList(TAccountDetail tAccountDetail)
    {
        return tAccountDetailMapper.selectTAccountDetailList(tAccountDetail);
    }

    /**
     * 新增示账户变更的明细记录
     * 
     * @param tAccountDetail 示账户变更的明细记录
     * @return 结果
     */
    @Override
    public int insertTAccountDetail(TAccountDetail tAccountDetail)
    {
        return tAccountDetailMapper.insertTAccountDetail(tAccountDetail);
    }

    /**
     * 修改示账户变更的明细记录
     * 
     * @param tAccountDetail 示账户变更的明细记录
     * @return 结果
     */
    @Override
    public int updateTAccountDetail(TAccountDetail tAccountDetail)
    {
        return tAccountDetailMapper.updateTAccountDetail(tAccountDetail);
    }

    /**
     * 批量删除示账户变更的明细记录
     * 
     * @param aids 需要删除的示账户变更的明细记录主键
     * @return 结果
     */
    @Override
    public int deleteTAccountDetailByAids(Long[] aids)
    {
        return tAccountDetailMapper.deleteTAccountDetailByAids(aids);
    }

    /**
     * 删除示账户变更的明细记录信息
     * 
     * @param aid 示账户变更的明细记录主键
     * @return 结果
     */
    @Override
    public int deleteTAccountDetailByAid(Long aid)
    {
        return tAccountDetailMapper.deleteTAccountDetailByAid(aid);
    }
}
